home *** CD-ROM | disk | FTP | other *** search
- #include "bbs.h"
-
- void CheckIconifyMsg(void)
- {
- struct IntuiMessage *IconifyMsg;
- ULONG class=0L;
- if(!ICON)
- {
- if(BitPlanes!=0)
- {
- while(IconifyMsg=(struct IntuiMessage *)GetMsg(Iconify->UserPort))
- { class=IconifyMsg->Class; ReplyMsg((struct Message *)IconifyMsg); }
- if(class==GADGETUP||class==GADGETDOWN)
- {
- IconifyAE();
- }
- }
- else
- {
- IconifyMsg=(struct IntuiMessage *)GetMsg(MYwindow->UserPort);
- if(IconifyMsg)
- {
- class=IconifyMsg->Class;
- ReplyMsg((struct Message *)IconifyMsg);
- if(class==CLOSEWINDOW)
- {
- IconifyAE();
- }
- }
- }
- }
- }
-